package com.example.mytayunapi.Service;

import com.example.mytayunapi.Entity.adminInfo;
import com.example.mytayunapi.Mapper.adminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class adminServiceImpl implements adminService{

    @Autowired
    private adminMapper adminmapper;

    //111
    @Override
    public Integer updateadminInfo(adminInfo adminIfo) {
        return adminmapper.updateadminInfo(adminIfo);
    }

    @Override
    public Integer deleteBySchool_degree(String School_degree) {
        Integer i = adminmapper.deleteBySchool_degree(School_degree);
        return i;
    }

    @Override
    public Integer insertadminInfo(adminInfo adminIfo) {
        return adminmapper.insertadminInfo(adminIfo);
    }

    @Override
    public List<adminInfo> getAlladminInfo(String School_degree) {
        return adminmapper.getAlladminInfo(School_degree);
    }

    @Override
    public adminInfo findBySchool_degreeAndPassword(String School_degree, String password) {
        return adminmapper.findBySchool_degreeAndPassword(School_degree,password);
    }
}
